package com.chenille.tools.http.interceptor

import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response
import java.io.IOException

/**
 * @Author: FALLS CHEN
 * @Date: 2020-01-10 11:50
 * EMAIL: 636e68747474403136332e636f6d
 * @Version 1.0 网络拦截
 */
interface RequestHandler {

    fun onBeforeRequest(request: Request, chain: Interceptor.Chain): Request

    @Throws(IOException::class)
    fun onAfterRequest(response: Response, chain: Interceptor.Chain): Response

}
